[core][doc] add actor+job+node event to ray event export doc#57930
[core][doc] add actor+job+node event to ray event export doc#57930can-anyscale merged 1 commit intomasterfrom
Conversation
There was a problem hiding this comment.
Code Review
This pull request adds documentation for actor, job, and node events to the Ray event export guide. The changes are clear and follow the existing structure of the document. I've provided a few suggestions to improve consistency and clarity in the descriptions of lifecycle events and to fix some minor formatting inconsistencies.
| For each actor, Ray exports two types of events: Actor Definition Event and Actor Lifecycle Event. | ||
| * Actor Definition Event contains the metadata of the actor when it is defined. | ||
| See `src/ray/protobuf/public/events_actor_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_actor_definition_event.proto>`_ for the event format. | ||
| * Actor Lifecycle Event contains the lifecycle information of the actor. |
There was a problem hiding this comment.
The description for the Actor Lifecycle Event is a bit generic. To be more descriptive and consistent with the 'Task events' section, which mentions task state transition information, consider specifying that this event contains state transition information for actors.
| * Actor Lifecycle Event contains the lifecycle information of the actor. | |
| * Actor Lifecycle Event contains actor state transition information. |
| ^^^^^^^^^^^^^^^^^^ | ||
|
|
||
| For each driver job, Ray exports two types of events: Driver Job Definition Event and Driver Job Lifecycle Event. | ||
|
|
|
|
||
| * Driver Job Definition Event contains the metadata of the driver job when it is defined. | ||
| See `src/ray/protobuf/public/events_driver_job_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_driver_job_definition_event.proto>`_ for the event format. | ||
| * Driver Job Lifecycle Event contains the lifecycle information of the driver job. |
There was a problem hiding this comment.
Similar to the actor event, the description for the Driver Job Lifecycle Event is a bit generic. To improve clarity and consistency, consider specifying that it contains state transition information for driver jobs.
| * Driver Job Lifecycle Event contains the lifecycle information of the driver job. | |
| * Driver Job Lifecycle Event contains driver job state transition information. |
| ^^^^^^^^^^^ | ||
|
|
||
| For each node, Ray exports two types of events: Node Definition Event and Node Lifecycle Event. | ||
|
|
|
|
||
| * Node Definition Event contains the metadata of the node when it is defined. | ||
| See `src/ray/protobuf/public/events_node_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_node_definition_event.proto>`_ for the event format. | ||
| * Node Lifecycle Event contains the lifecycle information of the node. |
There was a problem hiding this comment.
Similar to the other lifecycle events, the description for the Node Lifecycle Event is a bit generic. To improve clarity and consistency, consider specifying that it contains state transition information for nodes.
| * Node Lifecycle Event contains the lifecycle information of the node. | |
| * Node Lifecycle Event contains node state transition information. |
a9c21fa to
b8b7224
Compare
angelinalg
left a comment
There was a problem hiding this comment.
Do you want to remove line 9 of the ray-event-export.rst file with these new features?
| Actor events | ||
| ^^^^^^^^^^^^ | ||
|
|
||
| For each actor, Ray exports two types of events: Actor Definition Event and Actor Lifecycle Event. |
There was a problem hiding this comment.
| For each actor, Ray exports two types of events: Actor Definition Event and Actor Lifecycle Event. | |
| For each actor, Ray exports two types of events: Actor Definition Events and Actor Lifecycle Events. | |
There was a problem hiding this comment.
Need a blank line before the bulleted points for it to render correctly.
| ^^^^^^^^^^^^ | ||
|
|
||
| For each actor, Ray exports two types of events: Actor Definition Event and Actor Lifecycle Event. | ||
| * Actor Definition Event contains the metadata of the actor when it is defined. See `src/ray/protobuf/public/events_actor_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_actor_definition_event.proto>`_ for the event format. |
There was a problem hiding this comment.
| * Actor Definition Event contains the metadata of the actor when it is defined. See `src/ray/protobuf/public/events_actor_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_actor_definition_event.proto>`_ for the event format. | |
| * An Actor Definition Event contains the metadata of the actor when it's defined. See `src/ray/protobuf/public/events_actor_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_actor_definition_event.proto>`_ for the event format. |
|
|
||
| For each actor, Ray exports two types of events: Actor Definition Event and Actor Lifecycle Event. | ||
| * Actor Definition Event contains the metadata of the actor when it is defined. See `src/ray/protobuf/public/events_actor_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_actor_definition_event.proto>`_ for the event format. | ||
| * Actor Lifecycle Event contains the actor state transition information and metadata associated with each transition. See `src/ray/protobuf/public/events_actor_lifecycle_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_actor_lifecycle_event.proto>`_ for the event format. |
There was a problem hiding this comment.
| * Actor Lifecycle Event contains the actor state transition information and metadata associated with each transition. See `src/ray/protobuf/public/events_actor_lifecycle_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_actor_lifecycle_event.proto>`_ for the event format. | |
| * An Actor Lifecycle Event contains the actor state transition information and metadata associated with each transition. See `src/ray/protobuf/public/events_actor_lifecycle_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_actor_lifecycle_event.proto>`_ for the event format. |
| Driver job events | ||
| ^^^^^^^^^^^^^^^^^^ | ||
|
|
||
| For each driver job, Ray exports two types of events: Driver Job Definition Event and Driver Job Lifecycle Event. |
There was a problem hiding this comment.
| For each driver job, Ray exports two types of events: Driver Job Definition Event and Driver Job Lifecycle Event. | |
| For each driver job, Ray exports two types of events: Driver Job Definition Events and Driver Job Lifecycle Events. |
|
|
||
| For each driver job, Ray exports two types of events: Driver Job Definition Event and Driver Job Lifecycle Event. | ||
|
|
||
| * Driver Job Definition Event contains the metadata of the driver job when it is defined. See `src/ray/protobuf/public/events_driver_job_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_driver_job_definition_event.proto>`_ for the event format. |
There was a problem hiding this comment.
| * Driver Job Definition Event contains the metadata of the driver job when it is defined. See `src/ray/protobuf/public/events_driver_job_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_driver_job_definition_event.proto>`_ for the event format. | |
| * A Driver Job Definition Event contains the metadata of the driver job when it's defined. See `src/ray/protobuf/public/events_driver_job_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_driver_job_definition_event.proto>`_ for the event format. |
| For each driver job, Ray exports two types of events: Driver Job Definition Event and Driver Job Lifecycle Event. | ||
|
|
||
| * Driver Job Definition Event contains the metadata of the driver job when it is defined. See `src/ray/protobuf/public/events_driver_job_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_driver_job_definition_event.proto>`_ for the event format. | ||
| * Driver Job Lifecycle Event contains the driver job state transition information and metadata associated with each transition. See `src/ray/protobuf/public/events_driver_job_lifecycle_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_driver_job_lifecycle_event.proto>`_ for the event format. |
There was a problem hiding this comment.
| * Driver Job Lifecycle Event contains the driver job state transition information and metadata associated with each transition. See `src/ray/protobuf/public/events_driver_job_lifecycle_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_driver_job_lifecycle_event.proto>`_ for the event format. | |
| * A Driver Job Lifecycle Event contains the driver job state transition information and metadata associated with each transition. See `src/ray/protobuf/public/events_driver_job_lifecycle_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_driver_job_lifecycle_event.proto>`_ for the event format. |
| Node events | ||
| ^^^^^^^^^^^ | ||
|
|
||
| For each node, Ray exports two types of events: Node Definition Event and Node Lifecycle Event. |
There was a problem hiding this comment.
| For each node, Ray exports two types of events: Node Definition Event and Node Lifecycle Event. | |
| For each node, Ray exports two types of events: Node Definition Events and Node Lifecycle Events. |
|
|
||
| For each node, Ray exports two types of events: Node Definition Event and Node Lifecycle Event. | ||
|
|
||
| * Node Definition Event contains the metadata of the node when it is defined. See `src/ray/protobuf/public/events_node_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_node_definition_event.proto>`_ for the event format. |
There was a problem hiding this comment.
| * Node Definition Event contains the metadata of the node when it is defined. See `src/ray/protobuf/public/events_node_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_node_definition_event.proto>`_ for the event format. | |
| * A Node Definition Event contains the metadata of the node when it's defined. See `src/ray/protobuf/public/events_node_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_node_definition_event.proto>`_ for the event format. |
| For each node, Ray exports two types of events: Node Definition Event and Node Lifecycle Event. | ||
|
|
||
| * Node Definition Event contains the metadata of the node when it is defined. See `src/ray/protobuf/public/events_node_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_node_definition_event.proto>`_ for the event format. | ||
| * Node Lifecycle Event contains the node state transition information and metadata associated with each transition. See `src/ray/protobuf/public/events_node_lifecycle_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_node_lifecycle_event.proto>`_ for the event format. |
There was a problem hiding this comment.
| * Node Lifecycle Event contains the node state transition information and metadata associated with each transition. See `src/ray/protobuf/public/events_node_lifecycle_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_node_lifecycle_event.proto>`_ for the event format. | |
| * A Node Lifecycle Event contains the node state transition information and metadata associated with each transition. See `src/ray/protobuf/public/events_node_lifecycle_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_node_lifecycle_event.proto>`_ for the event format. |
There was a problem hiding this comment.
Nice! Can we add examples for the event types as well?
b8b7224 to
a0f7ea6
Compare
|
address feedback |
a0f7ea6 to
4d02729
Compare
Signed-off-by: Cuong Nguyen <can@anyscale.com>
4d02729 to
4609149
Compare
…ject#57930) Add actor+job+node event to ray event export doc Test: - CI Signed-off-by: Cuong Nguyen <can@anyscale.com> Signed-off-by: xgui <xgui@anyscale.com>
…ject#57930) Add actor+job+node event to ray event export doc Test: - CI Signed-off-by: Cuong Nguyen <can@anyscale.com>
…ject#57930) Add actor+job+node event to ray event export doc Test: - CI Signed-off-by: Cuong Nguyen <can@anyscale.com> Signed-off-by: Aydin Abiar <aydin@anyscale.com>
…ject#57930) Add actor+job+node event to ray event export doc Test: - CI Signed-off-by: Cuong Nguyen <can@anyscale.com> Signed-off-by: Future-Outlier <eric901201@gmail.com>
Add actor+job+node event to ray event export doc
Test: